No test is running, what i'm doing wrong?

You can see that no tests are running

config file:
docker:
# specify the version you desire here
- image: circleci/openjdk:8-jdk

  # Specify service dependencies here if necessary
  # CircleCI maintains a library of pre-built images
  # documented at https://circleci.com/docs/2.0/circleci-images/
  # - image: circleci/postgres:9.4

environment:
  # Customize the JVM maximum heap limit
  MAVEN_OPTS: -Xmx3200m

steps:
  - checkout:
      path: ~/freenow

  # Download and cache dependencies
  - restore_cache:
      keys:
      - recipe-{{ checksum "pom.xml" }}
      # fallback to using the latest cache if no exact match is found
      - recipe-

  - run: mvn dependency:go-offline

  - save_cache:
      paths:
        - ~/.m2
      key: recipe-{{ checksum "pom.xml" }}

  # run tests!
  - run: mvn integration-test

Can you post your whole config file in a markdown block please?

My guess is that that mvn integration-test is running in a different directory to where you have checkout out your code.

I would try something like this:

version: 2.1
jobs:
  build:
    docker:
      - image: circleci/openjdk:8-jdk
    environment:
      # Customize the JVM maximum heap limit
      MAVEN_OPTS: -Xmx3200m
    steps:
      - checkout
      - run: mvn integration-test

I would remove the caching until you get your tests working, and then add it back in.

1 Like