-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Move tests to the pytest framework, add badges(#34)
fixes #28 fixes #29 fixes #31 * Rename all examples from `text_` to `example_` * Add `check_travis_tag.py` test * Make all tests run by pytest * Compute test coverage and submit to coveralls * Add Travis and coveralls badges * Skip binary restart test for the moment, as it is hanging (see the issue #40) * Reorder a bit the Docker file, make it more clear * Move supplementary files from `examples/simple_calculations` to `examples`
- Loading branch information
1 parent
7610c14
commit d5b81bb
Showing
36 changed files
with
408 additions
and
289 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
# -*- coding: utf-8 -*- | ||
# pylint: disable=invalid-name | ||
############################################################################### | ||
# Copyright (c), The AiiDA-CP2K authors. # | ||
# SPDX-License-Identifier: MIT # | ||
# AiiDA-CP2K is hosted on GitHub at https://github.com/aiidateam/aiida-cp2k # | ||
# For further information on the license, see the LICENSE.txt file. # | ||
############################################################################### | ||
"""Check travis tag""" | ||
from __future__ import print_function | ||
from __future__ import absolute_import | ||
|
||
import os | ||
import sys | ||
import json | ||
|
||
a = os.getenv("TRAVIS_TAG") | ||
with open("setup.json") as fhandle: | ||
b = "v{version}".format(**json.load(fhandle)) | ||
|
||
if not a: | ||
print("TRAVIS_TAG not set") | ||
|
||
elif a != b: | ||
print("ERROR: TRAVIS_TAG and version are inconsistent: '{}' vs '{}'".format(a, b)) | ||
sys.exit(3) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
""" | ||
For pytest initialise a test database and profile | ||
""" | ||
from __future__ import absolute_import | ||
import pytest | ||
pytest_plugins = ['aiida.manage.tests.pytest_fixtures'] # pylint: disable=invalid-name | ||
|
||
|
||
@pytest.fixture(scope='function') | ||
def raspa_code(aiida_local_code_factory): # pylint: disable=unused-argument | ||
return aiida_local_code_factory("raspa", "simulate") |
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.