Skip to content

Commit

Permalink
acc tests are working
Browse files Browse the repository at this point in the history
  • Loading branch information
QubitPi committed Apr 18, 2024
1 parent 76fb857 commit f4c8387
Show file tree
Hide file tree
Showing 6 changed files with 35 additions and 135 deletions.
22 changes: 20 additions & 2 deletions .github/workflows/ci-cd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -73,9 +73,27 @@ jobs:
push: true
tags: jack20191124/athena-example-books:latest

acceptance-tests:
name: Run example acceptance tests
needs: examples-basic-app-docker-image
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Set up JDK
uses: QubitPi/hashicorp-aws/.github/actions/jdk-setup@master
- name: Start Book example application Docker Compose
run: docker compose up
working-directory: cd athena/athena-examples/athena-example-books/
- name: Wait until Docker Compose is up
uses: iFaxity/wait-on-action
with:
resource: http://localhost:8080/v1/metadata/graphql?query={metaData(fileId:%221%22){fileName}}
- name: Run acceptance tests
run: mvn clean verify

documentation:
name: Test Documentation Build & Deploy Documentation to GitHub Pages
needs: tests
needs: acceptance-tests
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
Expand Down Expand Up @@ -106,7 +124,7 @@ jobs:

release:
name: Release Athena to Maven Central
needs: tests
needs: acceptance-tests
if: github.ref == 'refs/heads/master'
runs-on: ubuntu-latest
steps:
Expand Down
47 changes: 0 additions & 47 deletions athena-examples/athena-example-acceptance-tests/Dockerfile

This file was deleted.

This file was deleted.

18 changes: 15 additions & 3 deletions athena-examples/athena-example-acceptance-tests/README.md
Original file line number Diff line number Diff line change
@@ -1,12 +1,24 @@
Athena Acceptance Test Framework
================================

![Cucumber Badge][Cucumber Badge]

Athena acceptance test framework is a slightly modified BDD, which
[eliminates the QA](https://spectrum.ieee.org/yahoos-engineers-move-to-coding-without-a-net)

To run all acceptance tests, run
The acceptances tests runs against the
[book example application](https://github.com/QubitPi/athena/tree/master/athena-examples/athena-example-books), which
can be brought up using its dedicated Docker Compose:

```console
cd athena/athena-examples/athena-example-books/
docker compose up
```

```bash
cd athena-acceptance-tests/
Then run all acceptance tests with

```console
mvn clean verify
```

[Cucumber Badge]: https://img.shields.io/badge/Cucumber-23D96C?style=for-the-badge&logo=cucumber&logoColor=white
34 changes: 0 additions & 34 deletions athena-examples/athena-example-acceptance-tests/docker-compose.yml

This file was deleted.

29 changes: 0 additions & 29 deletions athena-examples/athena-example-acceptance-tests/mysql-init.sql

This file was deleted.

0 comments on commit f4c8387

Please sign in to comment.