Skip to content

Conversation

Fladolcetta
Copy link
Contributor

@Fladolcetta Fladolcetta commented Aug 30, 2017

[ x] This contribution adheres to [CONTRIBUTING.md]

What does this Pull Request accomplish?

Fixes #195

Why should this Pull Request be merged?

It increases the unit test coverage of NI-FAKE, adds additional NI-FAKE functions, and reduces system test redundancy.

What testing has been done?

Run Unit Tests and System Tests

@Fladolcetta Fladolcetta added this to the Iteration 17-09 milestone Aug 30, 2017
@coveralls
Copy link

coveralls commented Aug 30, 2017

Coverage Status

Coverage increased (+6.1%) to 60.422% when pulling efce6a3 on bug/bug195 into f906bd2 on master.

'direction': 'in',
'enum': None,
'name': 'aNumber',
'type': 'ViInt16',
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Try a different data type

'direction': 'in',
'enum': None,
'name': 'aNumber2',
'type': 'ViInt16',
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

try a different data type - we already tested ViInt16

lib1 = session.library
with nifake.Session('dev1') as session:
lib2 = session.library
assert lib1 == lib2
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lib1 is lib2
(you don't want to compare, you want to ensure it's the same exact instance)

def test_library_singleton(self):
with nifake.Session('dev1') as session:
lib1 = session.library
with nifake.Session('dev1') as session:
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

dev2?

@coveralls
Copy link

coveralls commented Aug 30, 2017

Coverage Status

Coverage increased (+6.2%) to 60.522% when pulling 0d65626 on bug/bug195 into f906bd2 on master.

marcoskirsch and others added 6 commits August 31, 2017 09:16
# Conflicts:
#	generated/command_history.bat
#	generated/command_history.sh
#	generated/nifake/ctypes_library.py
#	generated/nifake/tests/test_session.py
#	src/nidmm/system_tests/test_system_nidmm.py
#	src/nifake/tests/test_session.py
@coveralls
Copy link

coveralls commented Aug 31, 2017

Coverage Status

Coverage increased (+6.2%) to 60.54% when pulling 75d3cea on bug/bug195 into e3d8502 on master.

@coveralls
Copy link

coveralls commented Aug 31, 2017

Coverage Status

Coverage increased (+6.2%) to 60.54% when pulling 75d3cea on bug/bug195 into e3d8502 on master.

@Fladolcetta Fladolcetta merged commit 65f37e1 into master Aug 31, 2017
@Fladolcetta Fladolcetta deleted the bug/bug195 branch August 31, 2017 16:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants