WIP: Epiphany Refactor (#85)

This commit is contained in:
Lucien Greathouse 2018-08-26 01:03:53 -07:00 • committed by GitHub
parent 80b9b7594b
commit 72bc77f1d5
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
52 changed files with 1145 additions and 2157 deletions

32
integration/src/main.rs Normal file
View file

@ -0,0 +1,32 @@
use std::{
path::Path,
process::Command,
thread,
time::Duration,
};
fn main() {
let plugin_path = Path::new("../plugin");
let server_path = Path::new("../server");
let tests_path = Path::new("../tests");
let server = Command::new("cargo")
.args(&["run", "--", "serve", "../test-projects/empty"])
.current_dir(server_path)
.spawn();
thread::sleep(Duration::from_millis(1000));
// TODO: Wait for server to start responding on the right port
let test_client = Command::new("lua")
.args(&["runTest.lua", "tests/empty.lua"])
.current_dir(plugin_path)
.spawn();
thread::sleep(Duration::from_millis(300));
// TODO: Collect output from the client for success/failure?
println!("Dying!");
}