Skip to content

Api test for single publication Bibtex export#23

Merged
Eiriknil merged 9 commits into
mainfrom
bibtex
May 27, 2026
Merged

Api test for single publication Bibtex export#23
Eiriknil merged 9 commits into
mainfrom
bibtex

Conversation

@Eiriknil
Copy link
Copy Markdown
Contributor

Added BibText module to gradle project
Added tests for export to bibtex for AcademicArticle and AcademicMonograph

parameterized publish test in publication-api module

@Eiriknil Eiriknil requested a review from LarsV123 May 21, 2026 07:35
Comment thread buildspec.yaml
Comment thread template/buildspec.yml Outdated
Comment thread bibtex/src/test/java/no/sikt/nva/apitest/search/resources/bibtex/BibTexTest.java Outdated
Comment thread bibtex/src/test/java/no/sikt/nva/apitest/search/resources/bibtex/BibTexTest.java Outdated
Comment thread bibtex/src/test/java/no/sikt/nva/apitest/search/resources/bibtex/BibTexTest.java Outdated
Comment thread bibtex/src/test/java/no/sikt/nva/apitest/search/resources/bibtex/BibTexTest.java Outdated
Comment thread buildspec.yaml
Comment thread buildspec.yaml
@@ -6,7 +6,7 @@ phases:
java: corretto21
nodejs: 24
commands:
- npm install allure
- npm install allure@3.8.2
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Note that this pins the direct dependency, but not the transitive dependencies, since we don't have a lockfile. Means we don't have any real guarantee about which versions are actually used for those on each test run.

Copy link
Copy Markdown
Contributor Author

@Eiriknil Eiriknil May 27, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Not sure how to do this in the best way

@Eiriknil Eiriknil requested a review from LarsV123 May 27, 2026 05:50
Comment thread bibtex/src/test/java/no/sikt/nva/apitest/search/resources/bibtex/BibTexTest.java Outdated
…ex/BibTexTest.java

Co-authored-by: Lars-Olav Vågene <42863501+LarsV123@users.noreply.github.com>

@ParameterizedTest
@MethodSource("publicationsInBibTexFormatProvider")
void shouldReturnPublicationsInBibTexFormat(Category category, BibTexExpectation expectation) {
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Since Allure uses DisplayName for test reports, should probably add that here too? Seems to be parameterized properly automatically. For example @DisplayName("Search with content type 'text/x-bibtex' produces BibTeX export")

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Agree

@Eiriknil Eiriknil merged commit 5816ee0 into main May 27, 2026
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants