engineeringsoftware / teco Goto Github PK
View Code? Open in Web Editor NEWTeCo: an ML+Execution model for test completion
Home Page: https://arxiv.org/abs/2302.10166
License: MIT License
TeCo: an ML+Execution model for test completion
Home Page: https://arxiv.org/abs/2302.10166
License: MIT License
Hi @pengyunie,
Thanks for sharing this repository and congratulations for your ICSE'23 paper.
Any chance you could provide a quick example on how to generate assert statements for an assertless test case using TECO? I'm not interesting in training, fine-tuning, or evaluating TECO or any model as you did in the paper. I would like to just use TECO from a developer / end-user point of view. Any source code on how to instantiate and use TECO's model would be much appreciated.
For instance, assuming I have the following method under test in the Foo
class
public int sum(int a, int b) {
return a + b;
}
and the following assertless test case
@Test
public void testSumOfNegativeValue() {
Foo foo = new Foo();
int sum = foo.sum(3, -2);
// Missing assert or perhaps any other code
}
how would one use TECO to generate the missing code, i.e., any missing assert statement?
Thanks in advance.
--
Best,
Jose
Teco is pretty work.
I'm trying to reproduce it.
However, when I execute the following command, I meet some problems:
inv exp.gen-subset-preds --setup CSNm --model SingleEvaluator-teco-norr --from-set eval-any-stmt/test --to-set eval-runnable-any-stmt/test
The problem is caused by the lack of teco.eval.specs.
Can you share this file with me?
Thank you very much.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.