#[macro_use]
extern crate serde_elm;

use std::env;

#[allow(dead_code)]
#[derive(Elm)]
struct Simple {
    name: String
}

#[test]
fn should_assert_elm_generation_was_done() {
    let mut path = env::current_dir().unwrap();
    path.push("generated");
    path.push("Simple.elm");

    assert!(path.exists());
    assert!(path.is_file());
}

#[macro_use]
extern crate serde_elm;

#[allow(dead_code)]
#[derive(Elm)]
struct Simple {
    name: String
}

#[test]
fn should_assert_elm_generation_was_done() {
    assert!(true);
}

--- 
+++ 
@@ -1,5 +1,7 @@
 #[macro_use]
 extern crate serde_elm;
+
+use std::env;
 
 #[allow(dead_code)]
 #[derive(Elm)]
@@ -9,5 +11,10 @@
 
 #[test]
 fn should_assert_elm_generation_was_done() {
-    assert!(true);
+    let mut path = env::current_dir().unwrap();
+    path.push("generated");
+    path.push("Simple.elm");
+
+    assert!(path.exists());
+    assert!(path.is_file());
 }
Test is the file actually is created
