Skip to content

Commit

Permalink
outlines rule
Browse files Browse the repository at this point in the history
  • Loading branch information
retorquere committed Apr 21, 2015
1 parent e7228d8 commit fa944be
Showing 1 changed file with 26 additions and 79 deletions.
105 changes: 26 additions & 79 deletions features/import.feature
Original file line number Diff line number Diff line change
@@ -1,99 +1,46 @@
@test-cluster-2 @import
Feature: Import

Scenario: Better BibTeX Import 1
When I import 1 reference with 1 attachment from 'import/Better BibTeX.001.bib'
Then the library should match 'import/Better BibTeX.001.json'

Scenario: Better BibTeX Import 2
When I import 2 references from 'import/Better BibTeX.002.bib'
Then the library should match 'import/Better BibTeX.002.json'
And the markdown citation for Torre2008 should be '["\\(Torre & Verducci, 2008\\)"]'

Scenario: Better BibTeX Import 3
When I import 2 references from 'import/Better BibTeX.003.bib'
Then the library should match 'import/Better BibTeX.003.json'

Scenario: Better BibTeX Import 4
When I import 1 reference from 'import/Better BibTeX.004.bib'
Then the library should match 'import/Better BibTeX.004.json'

Scenario: Better BibTeX Import 5
When I import 1 reference from 'import/Better BibTeX.005.bib'
Then the library should match 'import/Better BibTeX.005.json'

Scenario: Better BibTeX Import 6
When I import 1 reference from 'import/Better BibTeX.006.bib'
Then the library should match 'import/Better BibTeX.006.json'

Scenario: Better BibTeX Import 7
When I import 1 reference from 'import/Better BibTeX.007.bib'
Then the library should match 'import/Better BibTeX.007.json'

Scenario: option to mantain the braces and special commands in titles or all fields #100
When I set preference translators.better-bibtex.rawImports to true
And I set export option Export Collections to false
When I import 1 reference from 'import/Better BibTeX.007.bib'
Then the library should match 'import/Better BibTeX.007.raw.json'
And a library export using 'Better BibTeX' should match 'import/Better BibTeX.007.bib'

Scenario: Better BibTeX Import 8
When I import 1 reference from 'import/Better BibTeX.008.bib'
Then the library should match 'import/Better BibTeX.008.json'

Scenario: Malformed BibTeX entry on import
When I import 3 references with 2 attachment from 'import/Better BibTeX.009.bib'
Then the library should match 'import/Better BibTeX.009.json'

Scenario: Better BibTeX Import 10
When I import 1 reference with 1 attachment from 'import/Better BibTeX.010.bib'
Then the library should match 'import/Better BibTeX.010.json'

Scenario: Better BibTeX Import 11
When I import 1 reference with 1 attachment from 'import/Better BibTeX.011.bib'
Then the library should match 'import/Better BibTeX.011.json'

Scenario: Better BibTeX Import 12
When I import 1 reference from 'import/Better BibTeX.012.bib'
Then the library should match 'import/Better BibTeX.012.json'

Scenario: Better BibTeX Import 13
When I import 2 references from 'import/Better BibTeX.013.bib'
Then the library should match 'import/Better BibTeX.013.json'

Scenario: Better BibTeX Import 14
When I import 1 reference from 'import/Better BibTeX.014.bib'
Then the library should match 'import/Better BibTeX.014.json'

Scenario: Better BibTeX Import 15
When I import 1 reference with 2 attachments from 'import/Better BibTeX.015.bib'
Then the library should match 'import/Better BibTeX.015.json'

Scenario: Literal names in braces
When I import 1 reference from 'import/Literal names.bib'
Then the library should match 'import/Literal names.json'

Scenario: Author splitter failure (89)
When I import 1 reference from 'import/Author splitter failure.bib'
Then the library should match 'import/Author splitter failure.json'

Scenario: Failure to handle unparsed author names (92)
When I import 1 reference from 'import/Failure to handle unparsed author names (92).bib'
Then the library should match 'import/Failure to handle unparsed author names (92).json'

Scenario: Problem when importing BibTeX entries with square brackets #94
When I import 1 reference from 'import/Problem when importing BibTeX entries with square brackets #94.bib'
Then the library should match 'import/Problem when importing BibTeX entries with square brackets #94.json'

Scenario: Problem when importing BibTeX entries with percent sign #95 or preamble #96
When I import 1 reference from 'import/Problem when importing BibTeX entries with percent sign #95 or preamble #96.bib'
Then the library should match 'import/Problem when importing BibTeX entries with percent sign #95 or preamble #96.json'
Scenario Outline: Better BibTeX Import
When I import <references> reference from 'import/<file>.bib'
Then the library should match 'import/<file>.json'

Examples:
| file | references |
| Better BibTeX.001 | 2 |
| Better BibTeX.003 | 2 |
| Better BibTeX.004 | 1 |
| Better BibTeX.005 | 1 |
| Better BibTeX.006 | 1 |
| Better BibTeX.007 | 1 |
| Better BibTeX.008 | 1 |
| Better BibTeX.009 | 5 |
| Better BibTeX.010 | 2 |
| Better BibTeX.011 | 2 |
| Better BibTeX.012 | 1 |
| Better BibTeX.013 | 2 |
| Better BibTeX.014 | 1 |
| Better BibTeX.015 | 3 |
| Literal names | 1 |
| Author splitter failure | 1 |
| Failure to handle unparsed author names (92) | 1 |
| Problem when importing BibTeX entries with square brackets #94 | 1 |
| Problem when importing BibTeX entries with percent sign #95 or preamble #96 | 1 |
| Import fails to perform @String substitutions #154 | 1 |

#@97
#Scenario: Maintain the JabRef group and subgroup structure when importing a BibTeX db #97
# When I import 915 reference with 42 attachments from 'import/Maintain the JabRef group and subgroup structure when importing a BibTeX db #97.bib'
# Then the library should match 'import/Maintain the JabRef group and subgroup structure when importing a BibTeX db #97.json'

Scenario: Import fails to perform @String substitutions #154
When I import 1 reference from 'import/Import fails to perform @String substitutions #154.bib'
Then the library should match 'import/Import fails to perform @String substitutions #154.json'

0 comments on commit fa944be

Please sign in to comment.