Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in
Celebration

Earn badges and make progress

You're on your way to the next level! Join the Kudos program to earn points and save your progress.

Deleted user Avatar
Deleted user

Level 1: Seed

25 / 150 points

Next: Root

Avatar

1 badge earned

Collect

Participate in fun challenges

Challenges come and go, but your rewards stay with you. Do more to earn more!

Challenges
Coins

Gift kudos to your peers

What goes around comes around! Share the love by gifting kudos to your peers.

Recognition
Ribbon

Rise up in the ranks

Keep earning points to reach the top of the leaderboard. It resets every quarter so you always have a chance!

Leaderboard

Come for the products,
stay for the community

The Atlassian Community can help you and your team get more value out of Atlassian products and practices.

Atlassian Community about banner
4,557,117
Community Members
 
Community Events
184
Community Groups

ERROR: file or directory not found: tests/*

I am new to use bitbucket, when I tried setting up the pipeline, the YAML file bitbucket-pipelines.yml gives an error saying ERROR: file or directory not found: tests/*

image: python:3.8
pipelines: default: - parallel: - step: name: Test caches: - pip script: - if [ -f requirements.txt ]; then pip install -r requirements.txt; fi - pip install pytest - pytest -v tests/* --junitxml=test-reports/report.xml - step: name: Lint code script: # Enforce style consistency across Python projects https://flake8.pycqa.org/en/latest/manpage.html - pip install flake8 - flake8 . --extend-exclude=dist,build --show-source --statistics

can anyone help me on this?

1 answer

0 votes
Theodora Boudale
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
Jul 12, 2021

Hi @Test Account,

Which command gives you this error? I assume it's the following one?

pytest -v tests/* --junitxml=test-reports/report.xml

The error indicates that the tests folder does not exist in the repository. The pytest command expects to find files with tests in this directory.

If you have these files in a different directory in your repository, you'll need to replace tests/* in the command in your yml file with the path of the directory where the tests exist.

Please feel free to let me know how it goes and if you have any further questions.

Kind regards,
Theodora

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events