combinatrix-ai / PromptTrail

PromptTrail: A lightweight library for Prompt Programming, Agent as Code
https://prompttrail.readthedocs.io/en/latest/quickstart.html
MIT License
12 stars 0 forks source link

Add integrated test using examples, incl. various bugfixes #10

Closed hmirin closed 1 year ago

hmirin commented 1 year ago

close #8 close #9

codecov[bot] commented 1 year ago

Codecov Report

Merging #10 (56ea738) into main (782bf98) will increase coverage by 24.49%. The diff coverage is 71.29%.

@@             Coverage Diff             @@
##             main      #10       +/-   ##
===========================================
+ Coverage   51.81%   76.31%   +24.49%     
===========================================
  Files          16       17        +1     
  Lines        1019     1068       +49     
===========================================
+ Hits          528      815      +287     
+ Misses        491      253      -238     
Files Changed Coverage Δ
src/prompttrail/util.py 44.44% <30.76%> (-5.56%) :arrow_down:
src/prompttrail/agent/hook/core.py 70.00% <44.44%> (-0.50%) :arrow_down:
src/prompttrail/core.py 83.14% <66.66%> (-0.73%) :arrow_down:
src/prompttrail/agent/template.py 66.16% <67.10%> (+44.59%) :arrow_up:
src/prompttrail/agent/hook/code.py 86.84% <70.00%> (-6.27%) :arrow_down:
src/prompttrail/provider/openai.py 81.00% <75.00%> (+5.24%) :arrow_up:
src/prompttrail/mock.py 82.92% <76.47%> (-3.74%) :arrow_down:
src/prompttrail/agent/core.py 84.31% <78.94%> (+17.07%) :arrow_up:
src/prompttrail/agent/runner.py 80.23% <84.21%> (+80.23%) :arrow_up:
src/prompttrail/agent/user_interaction.py 75.00% <88.88%> (+75.00%) :arrow_up:
... and 2 more

... and 1 file with indirect coverage changes

:mega: We’re building smart automated test selection to slash your CI/CD build times. Learn more

sonarcloud[bot] commented 1 year ago

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 39 Code Smells

No Coverage information No Coverage information
0.5% 0.5% Duplication