Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
B-ASIC - Better ASIC Toolbox
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Computer Engineering
B-ASIC - Better ASIC Toolbox
Commits
aacf7a83
Commit
aacf7a83
authored
5 years ago
by
Kevin Scott
Browse files
Options
Downloads
Patches
Plain Diff
Added support for pytest and updated readme
parent
70613260
Branches
Branches containing commit
Tags
Tags containing commit
Loading
Pipeline
#9724
passed
5 years ago
Stage: build
Changes
4
Pipelines
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
README.md
+12
-1
12 additions, 1 deletion
README.md
setup.py
+2
-1
2 additions, 1 deletion
setup.py
tests/__init__.py
+0
-0
0 additions, 0 deletions
tests/__init__.py
tests/test_port.py
+10
-0
10 additions, 0 deletions
tests/test_port.py
with
24 additions
and
2 deletions
README.md
+
12
−
1
View file @
aacf7a83
...
@@ -88,6 +88,17 @@ python3
...
@@ -88,6 +88,17 @@ python3
>>> help(asic)
>>> help(asic)
```
```
## Running tests
### pytest
Run all tests against installed version off b_asic using a virtual enviroment
In
`B-ASIC`
:
```
python3 -m venv .venv
source .venv/bin/activate
pip install .
pytest
```
## License
## License
B-ASIC is distributed under the MIT license.
B-ASIC is distributed under the MIT license.
See the included LICENSE file for more information.
See the included LICENSE file for more information.
\ No newline at end of file
This diff is collapsed.
Click to expand it.
setup.py
+
2
−
1
View file @
aacf7a83
...
@@ -70,7 +70,8 @@ setuptools.setup(
...
@@ -70,7 +70,8 @@ setuptools.setup(
install_requires
=
[
install_requires
=
[
"
pybind11>=2.3.0
"
,
"
pybind11>=2.3.0
"
,
"
numpy
"
,
"
numpy
"
,
"
install_qt_binding
"
"
install_qt_binding
"
,
"
pytest==5.3.4
"
],
],
packages
=
[
"
b_asic
"
],
packages
=
[
"
b_asic
"
],
ext_modules
=
[
CMakeExtension
(
"
b_asic
"
)],
ext_modules
=
[
CMakeExtension
(
"
b_asic
"
)],
...
...
This diff is collapsed.
Click to expand it.
tests/__init__.py
0 → 100644
+
0
−
0
View file @
aacf7a83
This diff is collapsed.
Click to expand it.
tests/test_port.py
0 → 100644
+
10
−
0
View file @
aacf7a83
from
b_asic
import
InputPort
import
pytest
@pytest.fixture
def
outp_port
():
return
InputPort
(
0
)
def
test_port
(
outp_port
):
assert
outp_port
.
signals
()
==
[]
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment